package com.app.controller;

import com.app.model.response.RetStatus;
import com.app.service.CommentsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Lichaojie on 2017/3/19. It's a beautiful day.
 */
@RequestMapping(value = "/commentsv2")
@RestController
public class Commentsv2Controller {

    @Autowired
    private CommentsService commentsService;

    @RequestMapping(value = "/submitCommentsv2")
    public RetStatus submitCommentsv2(@RequestBody String parameter){
            return commentsService.submitCommentsv2(parameter);
    }

    @RequestMapping(value = "/getCommentsv2/Update")
    public RetStatus getCommentsv2Update(@RequestBody String parameter){
        return commentsService.getCommentsv2Update(parameter);
    }

    @RequestMapping(value = "/getCommentsv2/LoadMore")
    public RetStatus getCommentsv2LoadMore(@RequestBody String parameter){
        return commentsService.getCommentsv2LoadMore(parameter);
    }

}
